Skip to content

feat: warning if run in job #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2024
Merged

feat: warning if run in job #78

merged 5 commits into from
Jun 25, 2024

Conversation

cmeesters
Copy link
Member

Already, two issues (#75 and #22) seem to result from running Snakemake in a SLURM job context and using this executor plugin. This PR introduces detecting if triggered within a SLURM job and issuing a warning accordingly.

In principle, the plugin may work in job context. Submitting jobs from jobs has always been a highlight of SLURM. However, settings may lead to unintended behaviour (and would do so without Snakemake, presumably). Hence, we can only warn from the executor.

@cmeesters cmeesters requested a review from johanneskoester May 2, 2024 09:58
@cmeesters cmeesters changed the title Feat: warning if run in job feat: warning if run in job May 2, 2024
@cmeesters
Copy link
Member Author

@johanneskoester I think this is a rather trivial change - however, I do not know how to extend the test suite for it. Pointers? Or can it be merged like that?

@cmeesters
Copy link
Member Author

@johanneskoester I consider this an urgent PR - there are always people you try something like this.

@cmeesters cmeesters merged commit 257e830 into main Jun 25, 2024
4 checks passed
@cmeesters cmeesters deleted the feat/warning_if_run_in_job branch June 25, 2024 16:38
@cmeesters
Copy link
Member Author

waited long enough

cmeesters pushed a commit that referenced this pull request Jun 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.7.0](v0.6.0...v0.7.0)
(2024-06-25)


### Features

* warning if run in job
([#78](#78))
([257e830](257e830))


### Bug Fixes

* null byte account guess
([#81](#81))
([92d4445](92d4445))


### Documentation

* added mini paragraph about Conda and Env Modules
([#42](#42))
([c821b5e](c821b5e))
* added paragraphs about dynamic resource allocation
([#79](#79))
([06a1555](06a1555))
* storage update
([#80](#80))
([7e19560](7e19560))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cmeesters added a commit that referenced this pull request Jul 5, 2024
Already, two issues (#75 and #22) seem to result from running Snakemake
in a SLURM job context and using this executor plugin. This PR
introduces detecting if triggered within a SLURM job and issuing a
warning accordingly.

In principle, the plugin may work in job context. Submitting jobs from
jobs has always been a highlight of SLURM. However, settings may lead to
unintended behaviour (and would do so without Snakemake, presumably).
Hence, we can only warn from the executor.
cmeesters pushed a commit that referenced this pull request Jul 5, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.7.0](v0.6.0...v0.7.0)
(2024-06-25)


### Features

* warning if run in job
([#78](#78))
([257e830](257e830))


### Bug Fixes

* null byte account guess
([#81](#81))
([92d4445](92d4445))


### Documentation

* added mini paragraph about Conda and Env Modules
([#42](#42))
([c821b5e](c821b5e))
* added paragraphs about dynamic resource allocation
([#79](#79))
([06a1555](06a1555))
* storage update
([#80](#80))
([7e19560](7e19560))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cmeesters added a commit that referenced this pull request Jul 12, 2024
Already, two issues (#75 and #22) seem to result from running Snakemake
in a SLURM job context and using this executor plugin. This PR
introduces detecting if triggered within a SLURM job and issuing a
warning accordingly.

In principle, the plugin may work in job context. Submitting jobs from
jobs has always been a highlight of SLURM. However, settings may lead to
unintended behaviour (and would do so without Snakemake, presumably).
Hence, we can only warn from the executor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant